function getRandomColor() {
    for (var t = [], i = 0; i < 3; ++i) {
        var e = Math.floor(256 * Math.random()).toString(16);
        e = 1 == e.length ? "0" + e : e, t.push(e);
    }
    return "#" + t.join("");
}

Page({
    inputValue: "",
    data: {
        infortype: [ {
            id: 0,
            name: "推荐"
        }, {
            id: 1,
            name: "搞笑"
        }, {
            id: 2,
            name: "千里眼"
        }, {
            id: 3,
            name: "萌宠"
        }, {
            id: 4,
            name: "娱乐"
        }, {
            id: 5,
            name: "体育"
        }, {
            id: 6,
            name: "娱乐"
        }, {
            id: 7,
            name: "体育"
        } ],
        activeIndex: 0,
        src: "",
        danmuList: [ {
            text: "第 1s 出现的弹幕",
            color: "#ff0000",
            time: 1
        }, {
            text: "第 3s 出现的弹幕",
            color: "#ff00ff",
            time: 3
        } ],
        swiperCurrent: 0,
        indicatorDots: !1,
        autoplay: !0,
        interval: 5e3,
        duration: 1e3,
        slide: [ {
            img: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1513057315830&di=28c50097b1b069b2de68f70d625df8e2&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2Fa8014c086e061d95cb1b561170f40ad162d9cabe.jpg"
        }, {
            img: "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=570437944,358180613&fm=27&gp=0.jpg"
        } ]
    },
    swiperChange: function(t) {
        this.setData({
            swiperCurrent: t.detail.current
        });
    },
    onLoad: function(t) {},
    tabClick: function(t) {
        this.setData({
            activeIndex: t.currentTarget.id
        });
    },
    onReady: function(t) {
        this.videoContext = wx.createVideoContext("myVideo");
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});